Integrand size = 12, antiderivative size = 39 \[ \int x \left (a+b \arctan \left (\frac {c}{x}\right )\right ) \, dx=\frac {b c x}{2}+\frac {1}{2} x^2 \left (a+b \arctan \left (\frac {c}{x}\right )\right )-\frac {1}{2} b c^2 \arctan \left (\frac {x}{c}\right ) \]
[Out]
Time = 0.02 (sec) , antiderivative size = 39, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {4946, 199, 327, 209} \[ \int x \left (a+b \arctan \left (\frac {c}{x}\right )\right ) \, dx=\frac {1}{2} x^2 \left (a+b \arctan \left (\frac {c}{x}\right )\right )-\frac {1}{2} b c^2 \arctan \left (\frac {x}{c}\right )+\frac {b c x}{2} \]
[In]
[Out]
Rule 199
Rule 209
Rule 327
Rule 4946
Rubi steps \begin{align*} \text {integral}& = \frac {1}{2} x^2 \left (a+b \arctan \left (\frac {c}{x}\right )\right )+\frac {1}{2} (b c) \int \frac {1}{1+\frac {c^2}{x^2}} \, dx \\ & = \frac {1}{2} x^2 \left (a+b \arctan \left (\frac {c}{x}\right )\right )+\frac {1}{2} (b c) \int \frac {x^2}{c^2+x^2} \, dx \\ & = \frac {b c x}{2}+\frac {1}{2} x^2 \left (a+b \arctan \left (\frac {c}{x}\right )\right )-\frac {1}{2} \left (b c^3\right ) \int \frac {1}{c^2+x^2} \, dx \\ & = \frac {b c x}{2}+\frac {1}{2} x^2 \left (a+b \arctan \left (\frac {c}{x}\right )\right )-\frac {1}{2} b c^2 \arctan \left (\frac {x}{c}\right ) \\ \end{align*}
Time = 0.02 (sec) , antiderivative size = 44, normalized size of antiderivative = 1.13 \[ \int x \left (a+b \arctan \left (\frac {c}{x}\right )\right ) \, dx=\frac {b c x}{2}+\frac {a x^2}{2}+\frac {1}{2} b c^2 \arctan \left (\frac {c}{x}\right )+\frac {1}{2} b x^2 \arctan \left (\frac {c}{x}\right ) \]
[In]
[Out]
Time = 1.25 (sec) , antiderivative size = 37, normalized size of antiderivative = 0.95
method | result | size |
parts | \(\frac {a \,x^{2}}{2}+\frac {\arctan \left (\frac {c}{x}\right ) b \,x^{2}}{2}-\frac {b \,c^{2} \arctan \left (\frac {x}{c}\right )}{2}+\frac {x b c}{2}\) | \(37\) |
parallelrisch | \(\frac {\arctan \left (\frac {c}{x}\right ) b \,x^{2}}{2}+\frac {\arctan \left (\frac {c}{x}\right ) b \,c^{2}}{2}+\frac {a \,x^{2}}{2}+\frac {x b c}{2}-\frac {a \,c^{2}}{2}\) | \(43\) |
derivativedivides | \(-c^{2} \left (-\frac {a \,x^{2}}{2 c^{2}}+b \left (-\frac {x^{2} \arctan \left (\frac {c}{x}\right )}{2 c^{2}}-\frac {x}{2 c}-\frac {\arctan \left (\frac {c}{x}\right )}{2}\right )\right )\) | \(47\) |
default | \(-c^{2} \left (-\frac {a \,x^{2}}{2 c^{2}}+b \left (-\frac {x^{2} \arctan \left (\frac {c}{x}\right )}{2 c^{2}}-\frac {x}{2 c}-\frac {\arctan \left (\frac {c}{x}\right )}{2}\right )\right )\) | \(47\) |
risch | \(\text {Expression too large to display}\) | \(688\) |
[In]
[Out]
none
Time = 0.24 (sec) , antiderivative size = 31, normalized size of antiderivative = 0.79 \[ \int x \left (a+b \arctan \left (\frac {c}{x}\right )\right ) \, dx=\frac {1}{2} \, b c x + \frac {1}{2} \, a x^{2} + \frac {1}{2} \, {\left (b c^{2} + b x^{2}\right )} \arctan \left (\frac {c}{x}\right ) \]
[In]
[Out]
Time = 0.11 (sec) , antiderivative size = 36, normalized size of antiderivative = 0.92 \[ \int x \left (a+b \arctan \left (\frac {c}{x}\right )\right ) \, dx=\frac {a x^{2}}{2} + \frac {b c^{2} \operatorname {atan}{\left (\frac {c}{x} \right )}}{2} + \frac {b c x}{2} + \frac {b x^{2} \operatorname {atan}{\left (\frac {c}{x} \right )}}{2} \]
[In]
[Out]
none
Time = 0.26 (sec) , antiderivative size = 36, normalized size of antiderivative = 0.92 \[ \int x \left (a+b \arctan \left (\frac {c}{x}\right )\right ) \, dx=\frac {1}{2} \, a x^{2} + \frac {1}{2} \, {\left (x^{2} \arctan \left (\frac {c}{x}\right ) - {\left (c \arctan \left (\frac {x}{c}\right ) - x\right )} c\right )} b \]
[In]
[Out]
Result contains complex when optimal does not.
Time = 0.27 (sec) , antiderivative size = 72, normalized size of antiderivative = 1.85 \[ \int x \left (a+b \arctan \left (\frac {c}{x}\right )\right ) \, dx=\frac {{\left (2 \, b c^{3} \arctan \left (\frac {c}{x}\right ) - \frac {i \, b c^{5} \log \left (\frac {i \, c}{x} + 1\right )}{x^{2}} + \frac {i \, b c^{5} \log \left (-\frac {i \, c}{x} + 1\right )}{x^{2}} + 2 \, a c^{3} + \frac {2 \, b c^{4}}{x}\right )} x^{2}}{4 \, c^{3}} \]
[In]
[Out]
Time = 0.38 (sec) , antiderivative size = 36, normalized size of antiderivative = 0.92 \[ \int x \left (a+b \arctan \left (\frac {c}{x}\right )\right ) \, dx=\frac {a\,x^2}{2}+\frac {b\,c^2\,\mathrm {atan}\left (\frac {c}{x}\right )}{2}+\frac {b\,x^2\,\mathrm {atan}\left (\frac {c}{x}\right )}{2}+\frac {b\,c\,x}{2} \]
[In]
[Out]